package com.sky.mapper;

import com.sky.QueryByPage.CategoryQueryByPage;
import com.sky.annotation.AutoFill;
import com.sky.entity.Category;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoryMapper {
    List<Category> getByPage(CategoryQueryByPage cqbp);
    @AutoFill(value = OperationType.UPDATE)
    void update(Category category);

    void enable(Integer status, Integer id);

    @AutoFill(value = OperationType.INSERT)
    void add(Category category);

    void delete(Integer id);

    List<Category> getlist(Integer id);
}
